//
//  ADMapView.h
//  Anda_Driver_Pro
//
//  Created by AnDa-Y on 2019/8/5.
//  Copyright © 2019 AnDa-Y. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreLocation/CLLocation.h>

NS_ASSUME_NONNULL_BEGIN

@protocol ADMapViewDelegate;

@interface ADMapView : UIView

@property (weak, nonatomic) id<ADMapViewDelegate> delegate;

@property (nonatomic , assign) UIEdgeInsets mapEdgeInsets;

- (void)adjustShowCurrentLocation;
- (void)adjustShowTrafficLayer;

- (void)addAnnotationWithCoordinate:(CLLocationCoordinate2D)coor title:(NSString *)title;
- (void)removeAllAnnotations;

- (void)showRoute:(id)route aCoordinate:(CLLocationCoordinate2D)aCoor bCoordinate:(CLLocationCoordinate2D)bCoor;
- (void)removeAllRoutes;

- (void)removeAllLayers;

@end

@protocol ADMapViewDelegate <NSObject>

- (void)mapView;

@end

NS_ASSUME_NONNULL_END
